package zero.tech.games.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import zero.tech.core.data.Resp;
import zero.tech.games.entity.user.TUser;
import zero.tech.games.entity.user.TUserAccount;

@FeignClient(name = "user",path = "/user")
public interface RemoteUser {
	@PostMapping("/get-user")
	public TUser getUser(@RequestParam("uid")int uid);
	@PostMapping("/get-user-account")
	public TUserAccount getUserAccount(@RequestParam("uid") int uid);
	@PostMapping("/get-user-batch")
	public List<TUser> getUserBatch(@RequestBody List<Integer> zsUids);
	@PostMapping("/add-user-diamond")
	public Resp addUserDiamond(@RequestParam("uid")int uid, @RequestParam("add_dimond")Long add_dimond,
			@RequestParam("diamond_change_type")int diamond_change_type,@RequestParam("diamond_change_desc")String diamond_change_desc);
	@PostMapping("/game-update-diamond-batch")
	public Resp gameUpdateDiamondBatch(@RequestParam("order_id")String order_id,@RequestParam("game_id") int game_id,
			@RequestParam("room_id")String room_id, @RequestParam("room_times")int room_times, @RequestParam("room_name")String room_name,
			@RequestParam("total_times")int total_times, @RequestParam("diamondchangemap")String diamondchangemap);
}
